package com.znf4.good.imgUrl.server.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znf4.good.imgUrl.entity.ImgUrl;
import com.znf4.good.imgUrl.mapper.ImgUrlMapper;
import com.znf4.good.imgUrl.server.ImgUrlServer;

@Service
public class ImgUrlServerImpl implements ImgUrlServer {
	
	@Autowired
	private ImgUrlMapper imgUrlMapper ;
	
	

	public void addGoodImgUrl(ImgUrl imgUrl) {
		imgUrlMapper.insert(imgUrl);
		
	}

	public void updateGoodImgUrl(ImgUrl imgUrl) {
		imgUrlMapper.update(imgUrl);
		
	}

	public void delOneGoodImgUrl(ImgUrl imgUrl) {
		imgUrlMapper.deleteOne(imgUrl);
		
	}

	public void delAllGoodImgUrl(List<ImgUrl> imgUrls) {
		imgUrlMapper.deleteAll(imgUrls);
		
	}

	public ImgUrl queryOne(ImgUrl imgUrl) {
		return imgUrlMapper.queryOne(imgUrl) ;
		
	}

	public List<ImgUrl> queryAll(ImgUrl imgUrl) {
		return imgUrlMapper.queryAll(imgUrl);
	}
	
	
	
	
	

}
